<%@page contentType="text/html;charset=utf-8"%>
<%@include file="../../core/common.jsp"%>
<html>
<head>
<title></title>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false,footer:'#fb'">
		<form id="fm" method="post" enctype="multipart/form-data">
			<input type="hidden" name="AJAX" value="true">
			<table class="form-layout w90 p-t-10 p-r-30">
				<tr>
					<td>选择文件：</td>
					<td><input name="file" class="easyui-filebox" validType="fileSize[10,'MB']" data-options="required:true,accept:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div id="fb">
		<a id="save" class="form-btn success">确定</a>
	</div>
</body>
<script>
	$(function() {
		$('#save').click(function() {
			if (!$('#fm').form('validate')) {
				return;
			}
			$.mask();
			$("#fm").form("submit", {
				url : "${CTX}/mgt/t/rkd/upload?ajax=true",
				success : function(data) {
					var result = JSON.parse(data);
					$.unmask();
					$.handle(result, function() {
						$.close();
					});
				}
			});
		});
	});
</script>
</html>